package JavaSE.d3;

import JavaSE.d2.MyPoint;

public class MyXYZ extends MyPoint {
    private int X;
    private int Y;
    private int Z;

    @Override
    public void setX(int x) {
        X = x;
    }

    @Override
    public void setY(int y) {
        Y = y;
    }

    public void setZ(int z) {
        Z = z;
    }

    @Override
    public String toString() {
        return "MyXYZ{" +
                "X=" + X +
                ", Y=" + Y +
                ", Z=" + Z +
                '}';
    }
}
